{% extends 'admin/dashboard.html' %}

{% block content %}
<div class="card">
    <h2 class="text-xl font-bold mb-4">留言详情</h2>
    <div class="mb-4">
        <p class="font-medium">留言人: {{ message.name }}</p>
        <p class="font-medium">邮箱: {{ message.email }}</p>
        <p class="font-medium">留言时间: {{ message.create_time }}</p>
    </div>
    <div class="border p-4 rounded-md">
        <p>{{ message.content }}</p>
    </div>
    <a href="{{ url_for('admin_messages') }}" class="mt-4 inline-block px-4 py-2 bg-primary text-white rounded">返回列表</a>
</div>
{% endblock %}